<!DOCTYPE html>
<html>
<head>
	<title></title>
	<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
    <link href="//cdn.bootcss.com/bootstrap-fileinput/4.3.1/css/fileinput.min.css" rel="stylesheet">
    <style type="text/css">
		.file-drop-zone-title {
			padding: 0;
			font-size: 20px;
		}
    </style>
</head>
<body>
	<!-- <label class="control-label">select file</label>
	<input type="file" class="file" id='input-1'> -->
	 <div class="row">
	 	<div class="col-lg-3 col-md-3 col-sm-3  col-xs-3 col-md-offset-2 col-sm-offset-2 col-xs-offset-2" style="">
    		<h3 style="">店铺logo</h3>
    		<img src="{$logo}"  class="response"  style="max-width:150px">
    	</div>
	 	<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
	 		<h3>更改店铺logo</h3>
           	<input id="input-1" type="file" class="file">
        </div>  
           
    </div>
    <div class="row">
    	<div class="col-lg-3 col-md-3 col-sm-3  col-xs-3 col-md-offset-2 col-xs-offset-2">
    		<h3>店铺图片</h3>
    		<img src="{$shopimg}" class="response"  style="max-width:150px">
    	</div>
    	<div class="col-lg-3 col-md-3 col-sm-3  col-xs-3">
	    	<h3>更改店铺图片</h3>
	       	<input id="input-2" type="file"  class="file">
        </div> 	
    </div>
</body>
	<script src="http://libs.useso.com/js/jquery/2.1.1/jquery.min.js"></script>
    <script src="__PUBLIC__/Js/fileinput.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/Js/fileinput_locale_zh.js" type="text/javascript"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    	function initFileInput(ctrlName, uploadUrl) {    
		    var control = $('#' + ctrlName); 
			control.fileinput({
		        language: 'zh', //设置语言
		        uploadUrl: uploadUrl, //上传的地址
		        showCaption: false,//是否显示标题
		        allowedFileExtensions : ['jpg', 'png','gif'],//接收的文件后缀
		        browseClass: "btn btn-primary", //按钮样式             
		    });
		}

		initFileInput('input-1',"__CONTROLLER__/upload/type/logo");
		initFileInput('input-2',"__CONTROLLER__/upload/type/shopimg");
    </script>
</html>


